const plugins = import.meta.glob('./**/*.js', { eager: true })

const install = (app) => {
  Object.keys(plugins).forEach((key) => {
    plugins[key].default(app)
  })
}

export default {
  install
}
